import axios_instance from "../utils/request.ts";

export const get = async <T>(url: string, params?: string): Promise<T> => {
    let response = await axios_instance.get<T>(url, {params: params});
    return response.data;
}

export const post = async <T>(url: string, body?: any): Promise<T> => {
    let response = await axios_instance.post<T>(url, body);
    return response.data;
}